﻿using System.Windows.Controls;

namespace $rootnamespace$
{
    // Call InvokeDataSelected or InvokeCancelSelected to invite calling method, that dialog finish
    public partial class $safeitemrootname$
    {
        public $safeitemrootname$()
        {
            InitializeComponent();
        }

        public override bool IsOkVisible
        {
            get { return true; }
        }
        
        //Fired when user click ok button
        public override void OkClicked()
        {
            InvokeDataSelected("This is custom data returned by dialog");
        }

        //Fired when user click cancel button
        public override void CancelClicked()
        {
            InvokeCancelSelected();
        }

        public override bool IsStandartOkCancelEnabled
        {
            get { return true; }
        }

        public override object OkContent
        {
            get { return "Ok"; }
        }

        public override object CancelContent
        {
            get { return "Cancel"; }
        }

        public override bool AutoSize
        {
            get { return false; }
        }

        public override void LoadInitialData()
        {
            base.LoadInitialData();
        }

        public override Control GetControlForInitialFocus()
        {
            return base.GetControlForInitialFocus();
        }
    }
}
